import request from '/@/utils/request';

/**
 *
 * 场站api接口集合
 */
export function stationApi() {
  return {
    getTableData: (data: object) => {
      return request({
        url: 'baseStation/page',
        method: 'post',
        data,
      });
    },
    addRecord: (station: object) => {
      return request({
        url: 'baseStation/add',
        method: 'post',
        data: station,
      });
    },
    updateRecord: (station: object) => {
      return request({
        url: 'baseStation/update',
        method: 'post',
        data: station,
      });
    },
    delRecord: (station: object) => {
      return request({
        url: 'baseStation/delete',
        method: 'post',
        data: station,
      });
    },
  };
}
